<%@ include file="/WEB-INF/jsp/include/head.jsp" %><%@ page language="java" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${locale}">
<head>
    <%@ include file="/WEB-INF/jsp/include/title.jsp" %>
    <%@ include file="/WEB-INF/jsp/include/common_css2.jsp" %>
    <link rel="stylesheet" type="text/css" media="screen" href="<c:url value="/css/skin/default/default.css"/>"/>
    <%@ include file="/WEB-INF/jsp/include/common_script.jsp" %>
    <script type="text/javascript">
    //<![CDATA[
    function menuOut(event) {
        $(this).attr("class", "menu_out");
    }
    
    function menuOver(event) {
        $(this).attr("class", "menu_over");
    }
               
    $(document).ready(function() {    
        $(".menu_out").bind("mouseover", menuOver).bind("mouseout", menuOut);

        $("#" + "<c:out value='${(empty param.bbsId) ? \"home\" : param.bbsId}' />").addClass("menuselected");

        $("#locale").change(function (event) {
            location.href = "<c:url value='/changeLocale/' />" + $("#locale > option:selected").val();
        });

        $("#locale > option").each(function () {
            if($(this).val() == '${locale}')
                $(this).attr("selected", "true");
        });
    });        
    //]]>
    </script>        
</head>
<body>
<%@ include file="/WEB-INF/jsp/include/top2.jsp" %>
    <div style="clear:both;"></div>
    <div id="contents">
    <c:choose>
    <c:when test="${param.menuId == 'GeekSaga'}">
        <div id="contentLeft">
	        <ul class="mainLeftBox">
	            <li>
	                <a href="<c:url value='/bbs/list/SagaNotice'/>" class="menu_out"><spring:message code="menu.sagaNotice"/></a>
	            </li>
	            <li>
	                <a href="<c:url value='/bbs/list/BbsSagaTest'/>" class="menu_out"><spring:message code="menu.bbsSagaTest"/></a>
	            </li>
	            <li>
	                <a href="<c:url value='/bbs/list/BbsSagaQnA'/>" class="menu_out"><spring:message code="menu.bbsSagaQnA"/></a> 
	            </li>
	            <li>
	                <a href="<c:url value='/bbs/list/BbsSagaFaq'/>" class="menu_out"><spring:message code="menu.bbsSagaFaq"/></a>
	            </li>
	        </ul>
        </div>
    </c:when>
    <c:otherwise>
        <div id="contentLeft">
            <div class="mainLeftBox">
            <jsp:include page="/bbs/recentMemo.do" flush="true">
                <jsp:param name="size" value="10" />
            </jsp:include>
            <br />
            <br />
            <jsp:include page="/spec/recent.do" flush="true">
                <jsp:param name="size" value="10" />
            </jsp:include>
            </div>
        </div>
    </c:otherwise>
    </c:choose>    
        <div id="contentCenter">
            <div class="mainBox">
                <spring:message code="main.notice" />
                <jsp:include page="/bbs/recent.do" flush="true">
                    <jsp:param name="bbsId" value="SagaNotice" />
                    <jsp:param name="size" value="5" />
                </jsp:include>
            </div>
            <div class="mainBox">
                <spring:message code="wiki.recent" />
                <jsp:include page="/bbs/recent.do" flush="true">
                    <jsp:param name="isNew" value="true" />
                    <jsp:param name="size" value="10" />
                </jsp:include>
            </div>
            <div class="mainBox">
                <spring:message code="wiki.recentUpdate" />
                <jsp:include page="/bbs/recent.do" flush="true">
                    <jsp:param name="isNew" value="false" />
                    <jsp:param name="size" value="10" />
                </jsp:include>
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>
<%@ include file="/WEB-INF/jsp/include/footer.jsp" %>
</body>
</html>